import React, { Component } from "react";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import { wechatBindStudent, userInfoStudent, success } from "./wechatStudent.jsx";

class WechatApp extends Component {
    render() {
        return (
            <Router basename="pagetest">
                <Switch>
                    <Route path="/success" component={success} />     
                    <Route path="/wechatBindStudent" component={wechatBindStudent} />                
                    <Route path="/" component={userInfoStudent} />
                </Switch>
            </Router>
        )
        
    }
}

export default WechatApp;
